{assign name='images_num' value='1' /}
{assign name='is_editor' value='0' /}
{foreach $fields as $field}
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">{$field.title}：</label>
            {switch $field.type}
            {case select|type|config|table}
            <div class="formControls col-xs-6 col-sm-6">
                <div class="select-box">
                    <select name='{$field.name_form}' class='select'>
                        {neq name='field.require' value='1'}<option> - {$field.title} -</option>{/neq}
                        {foreach $field.option as $k=>$v}
                        <option type="radio" name="{$field.name_form}" id="radio-0" value="{$k}" {eq name='field.value' value='$k'}selected{/eq}>{$v}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            {/case}
            {case date}
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text Wdate" name="{$field.name_form}" readonly value="{$field.value}" {literal} onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" {/literal} />
            </div>
            {/case}
            {case datetime}
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text Wdate" name="{$field.name_form}" readonly value="{$field.value}" {literal} onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" {/literal} />
            </div>
            {/case}
            {case time}
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text Wdate" name="{$field.name_form}" readonly value="{$field.value}" {literal} onfocus="WdatePicker({dateFmt:'HH:mm:ss'})" {/literal} />
            </div>
            {/case}
            {case checkbox}
            <div class="formControls col-xs-6 col-sm-6 skin-minimal">
                {foreach $field.option as $k=>$v}
                <div class="radio-box">
                    <input type="checkbox" name="{$field.name_form}[]" id="{$field.name_form}-{$k}" value="{$k}">
                    <label for="{$field.name_form}-{$k}">{$v|default='&nbsp;'}</label>
                </div>
                {/foreach}
            </div>
            {/case}
            {case radio}
            <div class="formControls col-xs-6 col-sm-6 skin-minimal">
                {foreach $field.option as $k=>$v}
                <div class="radio-box">
                    <input type="radio" name="{$field.name_form}" id="radio-0" value="{$k}" {eq name='field.value' value='$k'}checked{/eq} />
                    <label for="radio-0">{$v}</label>
                </div>
                {/foreach}
            </div>
            {/case}
            {case number}
            <div class="formControls col-xs-6 col-sm-6">
                <input type="number" class="input-text" value="{$field.value}" name="{$field.name_form}" />
            </div>
            {/case}
            {case textarea}
            <div class="formControls col-xs-6 col-sm-6">
                <textarea class="textarea" placeholder="{$field.title}" name="{$field.name_form}">{$field.value}</textarea>
            </div>
            {/case}
            {case image}
            {php}$images_num++;{/php}
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" name="{$field.name_form}" value="{$field.value}" readonly class="input-text" id="upload_image_{$images_num}" placeholder="请点击后面的上传按钮" style="width: 70%">
                <button type="button" class="btn btn-primary radius" onclick="layer_open('文件上传','{:\\think\\Url::build(\'Upload/index\', [\'id\' => \'upload_image_\'.$images_num])}')">上传</button>
            </div>
            {/case}
            {default /}
            <div class="formControls col-xs-6 col-sm-6">
                <input type="{$field.type|default='text'}" class="input-text" value="{$field.value}" placeholder="{$field.title}" name="{$field.name_form}" />
            </div>
            {/switch}
            <div class="col-xs-3 col-sm-3"></div>
        </div>
{/foreach}